//
//  MCTopUpRecDetailViewController.m
//  TLYL
//
//  Created by miaocai on 2017/7/10.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCTopUpRecDetailViewController.h"

@interface MCTopUpRecDetailViewController ()


@property (weak, nonatomic)  UILabel *dingDanNumberLabel;
@property (weak, nonatomic)  UILabel *dingDanDetailLabel;
@property (weak, nonatomic)  UILabel *jinELabel;
@property (weak, nonatomic)  UILabel *jinEDetailLabel;
@property (weak, nonatomic)  UILabel *dateLabel;
@property (weak, nonatomic)  UILabel *dateDetailLabel;
@property (weak, nonatomic)  UILabel *payMethodLabel;
@property (weak, nonatomic)  UILabel *payMethodDetailLabel;
@property (weak, nonatomic)  UILabel *statusLabel;
@property (weak, nonatomic)  UILabel *statusDetailLabel;
@property (weak, nonatomic)  UILabel *infoLabel;
@property (weak, nonatomic)  UILabel *infoDetailLabel;
@property (weak, nonatomic)  UIButton *btnCopy;


@end

@implementation MCTopUpRecDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpUI];
    self.navigationItem.title = @"充值详情";
    self.view.backgroundColor = [UIColor whiteColor];

}

- (void)setUpUI{
    
    UILabel *dingDanLabel = [[UILabel alloc] init];
    [self.view addSubview:dingDanLabel];
    self.dingDanNumberLabel = dingDanLabel;
    dingDanLabel.text = @"订单号：";
    dingDanLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    dingDanLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    
    UILabel *dingDanDetailLabel = [[UILabel alloc] init];
    [self.view addSubview:dingDanDetailLabel];
    dingDanDetailLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    dingDanDetailLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.dingDanDetailLabel = dingDanDetailLabel;
    
    UIButton *btnCopy = [[UIButton alloc] init];
    [self.view addSubview:btnCopy];
    self.btnCopy = btnCopy;
    [btnCopy setTitle:@"复制" forState:UIControlStateNormal];
    [btnCopy setTitleColor:RGB(71, 143, 212) forState:UIControlStateNormal];
    btnCopy.layer.borderWidth = 1.0f;
    btnCopy.layer.cornerRadius = 2;
    btnCopy.clipsToBounds = YES;
    btnCopy.layer.borderColor = RGB(71, 143, 212).CGColor;
    btnCopy.titleLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14.0f)];
    
    UILabel *jinELabel = [[UILabel alloc] init];
    [self.view addSubview:jinELabel];
    jinELabel.text = @"金额：";
    jinELabel.textColor = [UIColor colorWithHexString:@"#666666"];
    jinELabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.jinELabel = jinELabel;
    
    
    UILabel *jinEDetailLabel = [[UILabel alloc] init];
    [self.view addSubview:jinEDetailLabel];
    jinEDetailLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    jinEDetailLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.jinEDetailLabel = jinEDetailLabel;
    
    UILabel *dateLabel = [[UILabel alloc] init];
    [self.view addSubview:dateLabel];
    dateLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    dateLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    dateLabel.text = @"时间：";
    self.dateLabel = dateLabel;
    
    UILabel *dateDetailLabel = [[UILabel alloc] init];
    [self.view addSubview:dateDetailLabel];
    dateDetailLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    dateDetailLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.dateDetailLabel = dateDetailLabel;
    
    
    UILabel *statusLabel = [[UILabel alloc] init];
    [self.view addSubview:statusLabel];
    statusLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    statusLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    statusLabel.text = @"状态：";
    self.statusLabel = statusLabel;
    
    UILabel *statusDetailLabel = [[UILabel alloc] init];
    [self.view addSubview:statusDetailLabel];
    statusDetailLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    statusDetailLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.statusDetailLabel = statusDetailLabel;
    
    
    UILabel *payMethodLabel = [[UILabel alloc] init];
    [self.view addSubview:payMethodLabel];
    payMethodLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    payMethodLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    payMethodLabel.text = @"方式：";
    self.payMethodLabel = payMethodLabel;
    
    UILabel *payMethodDetailLabel = [[UILabel alloc] init];
    [self.view addSubview:payMethodDetailLabel];
    payMethodDetailLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    payMethodDetailLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.payMethodDetailLabel = payMethodDetailLabel;
    
    UILabel *infoLabel = [[UILabel alloc] init];
    [self.view addSubview:infoLabel];
    infoLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    infoLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    infoLabel.text = @"备注：";
    self.infoLabel = infoLabel;
    
    UILabel *infoDetailLabel = [[UILabel alloc] init];
    [self.view addSubview:infoDetailLabel];
    infoDetailLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    infoDetailLabel.font = [UIFont systemFontOfSize:MC_REALVALUE(14)];
    self.infoDetailLabel = infoDetailLabel;
    
    [self.dingDanNumberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(MC_REALVALUE(100));
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        
    }];
    [self.dingDanDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dingDanNumberLabel.mas_right);
        make.top.equalTo(self.dingDanNumberLabel);
    }];
    
    [self.btnCopy mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.centerY.equalTo(self.dingDanNumberLabel);
        make.height.equalTo(@(MC_REALVALUE(30)));
        make.width.equalTo(@(MC_REALVALUE(80)));
    }];
    
    [self.jinELabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dingDanNumberLabel);
        make.top.equalTo(self.dingDanNumberLabel.mas_bottom).offset(MC_REALVALUE(10));
        
        
    }];
    [self.jinEDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.jinELabel.mas_right);
        make.top.equalTo(self.jinELabel);
    }];
    
    [self.dateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dingDanNumberLabel);
        make.top.equalTo(self.jinELabel.mas_bottom).offset(MC_REALVALUE(10));
        
        
    }];
    [self.dateDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dateLabel.mas_right);
        make.top.equalTo(self.dateLabel);
    }];
    
    [self.payMethodLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dingDanNumberLabel);
        make.top.equalTo(self.dateLabel.mas_bottom).offset(MC_REALVALUE(10));
        
        
    }];
    [self.payMethodDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.payMethodLabel.mas_right);
        make.top.equalTo(self.payMethodLabel);
    }];
    
    [self.statusLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dingDanNumberLabel);
        make.top.equalTo(self.payMethodLabel.mas_bottom).offset(MC_REALVALUE(10));
        
        
    }];
    [self.statusDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.statusLabel.mas_right);
        make.top.equalTo(self.statusLabel);
    }];
    
    [self.infoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.dingDanNumberLabel);
        make.top.equalTo(self.statusLabel.mas_bottom).offset(MC_REALVALUE(10));
        
        
    }];
    [self.infoDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.infoLabel.mas_right);
        make.top.equalTo(self.infoLabel);
    }];
    
    self.dingDanDetailLabel.text = @"12345678";
    self.jinEDetailLabel.text = @"200";
    self.dateDetailLabel.text = @"2017-05-06";
    self.payMethodDetailLabel.text = @"呵呵";
    self.statusDetailLabel.text = @"chuli";
    self.infoDetailLabel.text = @"nidaatete";
}



@end
